getOneAdmin();
function getOneAdmin() {
	$.ajax({
		url: urlcore + "/api/user/getadmin",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				   selectshopinfoone(data.data.id);
			}else{
				alert(data.msg);
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	
}




	function selectshopinfoone(ids){
		$.ajax({
 url: urlcore + "/api/shopInfo/selectagno1?id="+ids,
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					if(data.data.bondMoney==0){
						 $("#yijiaona").text(0.0);			
					}else{
						 $("#yijiaona").text(data.data.bondMoney);			
					}
                 		
					$("#ordermoylie").html(data.data.shopDeposit);
				} else if(data.code == 'OVERTIME') {
					var thisUrl = window.location.href;
					alert(thisUrl);
					if(thisUrl.indexOf('1.0.0denglu.html') <= -1) {
						top.window.location.href = "1.0.0denglu.html";
					}

				} else {
					if(data.msg != '空数据') {
						alert(data.msg)
					} else {
						$('#thiscount').text(0);
					}
				}

			},
			error: function() {
				alert("error");
			}
		});
		}
			
			

//jiao na

function tuifei(){/*
	if(uuuuid!=""){
		var tuifeijinge=$("#tuifeijinge").val();
	    $.ajax({  
        url : urlcore + "/api/shopInfo/updateShopDeposit",
        type : "post",  
        contentType: "application/json;charset=utf-8",
        data :  JSON.stringify({
        	userId:uuuuid,
        	isPayThaw:1,
        	shopDeposit:tuifeijinge
        }),
        	dataType: "json",
        success: function(data) {//data是返回的hash,key之类的值，key是定义的文件名 
        	window.location.href = document.referrer
        },
        error:function(){  
            alert("erer");  
        }  
    });     
	     }
*/}


function jiedong(){
	    $.ajax({  
        url : urlcore + "/api/shopInfo/updateShopDjiedong",
        type : "post",  
        contentType: "application/json;charset=utf-8",
        data :  JSON.stringify({
        	"isPayThaw":0
        }),
        	dataType: "json",
        success: function(data) {//data是返回的hash,key之类的值，key是定义的文件名 
        	var art=window.location.href;
        	window.location.href=art;
        },
        error:function(){  
            alert("erer");  
        }  
    });     
}

/*
function jiedong(){
	if(uuuuid!=""){
		var tuifeijinge=$("#tuifeijinge2").val();
	    $.ajax({  
        url : urlcore + "/api/shopInfo/updateShopDeposit",
        type : "post",  
        contentType: "application/json;charset=utf-8",
        data :  JSON.stringify({
        	userId:uuuuid,
        	isPayThaw:0,
        	shopDeposit:tuifeijinge
        }),
        	dataType: "json",
        success: function(data) {//data是返回的hash,key之类的值，key是定义的文件名 
        	window.location.href = document.referrer
        },
        error:function(){  
            alert("erer");  
        }  
    });     
	     }
}
*/




function jiaona(){
	
	window.location.href="../12.4.0chengxinshopyajin.html?ch=cn";
	
}
